<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>查找dom节点</title>
</head>
<body>
<a href="../jsObject/array.html" width="300" height="3
4" id="mer"></a>
<ul>
	<li>1</li>
	<li>2</li>
	<li>3</li>
	<li>4</li>
	<li>5</li>
	<li>6</li>

</ul>
<script type="text/javascript">
// 1.通过id属性查找：document.getElementById()
var oimg = document.getElementById('mer');
// 标签里面的属性，也会转换成对象的属性
console.log(oimg);

// console.log(oimg.src);
console.log(oimg.width);

oimg.width = "200";
console.log(oimg.width);
console.log(oimg);
// 通过标签名字查找
var oli = document.getElementsByTagName('li');
console.log(oli);


</script>

</body>
</html>